Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Experimental] Complete fix for punch ceiling stuck #727

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

jensewe
Copy link
Contributor

@jensewe jensewe commented Jan 2, 2024

And some explanations.

How punch ceiling stuck happens

How lag compensation system works

There's a lag compensation system (or lagcomp in the following) to help players register targets under network issues.
During "lagcomp section", every compensated entity is moved for a calculated offset, and eventually returned to a relatively original position.

What punch does to survivors

Besidees damages and fly, the game will try lifting survivors by 18 units so that they travel further away from the Tank.

When these two combines

Punching are lag-compensated. When a survivor gets punched, his lerped position may be possible for a 18-unit up, but not the case when "lagcomp section" finishes. Eventually he might get stuck in the ceiling.

Blame lagcomp?

Lagcomp actually provides the functionality to prevent stuck when rewinding entity positions.
But it defaults to off.


So this plugin simply turns on that functionality ONLY when a survivor gets punched, so the cost should be minumum (2 more traces at most per landed punch).

@SirPlease SirPlease merged commit aeaae00 into SirPlease:master Jan 2, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants